<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="vue.min.js"></script>
</head>
<body>
<div id = "databinding">
    <button v-on:click = "show = !show">点我</button>
    <transition name = "fade"><!--这个标签的元素样式改变将带有fade（淡入淡出）效果-->
        <p v-show = "show" v-bind:style = "styleobj">动画实例</p>
    </transition>
</div>
<script type = "text/javascript">
    var vm = new Vue({
        el: '#databinding',
        data: {
            show:true,
            styleobj :{
                fontSize:'30px',
                color:'red'
            }
        },
        methods : {
        }
    });
</script>
</body>
</html>